package com.home.common.annotation;


import com.home.common.constants.client.ClientConstant;
import com.home.common.constants.log.LogTypeConstant;

import java.lang.annotation.*;

/**
 * Description: 操作日志注解
 * Created by 王大宸 on 2020-09-23 1:00
 * Created with IntelliJ IDEA.
 */
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {
    /***
     * 操作对象
     */
    String title() default "";

    /**
     * 功能
     */
    String operateType() default LogTypeConstant.OTHER;

    /**
     * 是否保存请求的参数
     */
    boolean isSaveRequestData() default true;

    String clientId() default ClientConstant.CLIENT_WEB;
}
